<?php

require_once 'smarty_lib/Smarty.class.php';
require_once 'lib/DBClass.php';
require_once 'lib/Account.php';
require_once 'lib/sumber.php';
require_once 'lib/artikel.php';
require_once 'lib/pemesanan.php';


$smarty = new Smarty();
$acc = new Account();
$sumber = new sumber();
$artikel = new artikel();
$pesan = new pemesanan();


$smarty->template_dir = 'template/';
$smarty->compile_dir = 'template_c/';
	
	$smarty->assign('pemesanan', $pesan->getPesan());
	$smarty->assign('cookie', $acc->get_cookie());
	$smarty->assign('sumber', $sumber->getSumber());
	$smarty->assign('artikel', $artikel->getArtikel());
	$smarty->assign('page','beranda.html');
	$smarty->assign('title','Beranda');


$smarty->display('index.html');